package com.example.demo.clent;

import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class ServiceAClientFallbackFactory implements FallbackFactory<ServiceAClient> {
    @Override
    public ServiceAClient create(Throwable cause) {
        return new MyFeignClientFallback();
    }
}
